import request from '@/utils/request'

// 新增视讯号
export function fetchAdd(data) {
  return request({
    url: '/videoPool/addVideoNum',
    method: 'post',
    data
  })
}

// 批量导入文件
export function fetchExport(data) {
  return request({
    url: "/videoPool/uploadfile",
    method: "post",
    responseType: "blod",
    data
  })
}

// 删除视讯号
export function fetchDel(data) {
  return request({
    url: '/videoPool/deleteVideoNum',
    method: 'post',
    data
  })
}

// 下载模板
export function initVideoPool() {
  return request({
    url: '/videoPool/initVideoPool',
    method: 'get',
  })
}

// 禁止视讯号
export function fetchDisabled(data) {
  return request({
    url: '/videoPool/disableVideoNum',
    method: 'post',
    data
  })
}

// 下载模板
export function downloadUserInfo(data) {
  return request({
    url: '/videoPool/downloadTemplate',
    method: 'get',
    params: data,
    responseType: "blob"
  })
}

// 视讯号码池列表
export function fetchList(data) {
  return request({
    url: '/videoPool/list',
    method: 'post',
    data
  })
}

// 视讯号码池列表
export function fetchDetail(data) {
  return request({
    url: '/videoPool/get',
    method: 'post',
    data
  })
}
